<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of newPHPClass
 *
 * @author flutesing
 */
namespace Api\Model;
use Think\Model;

class ApplyPrivateDoctorModel extends Model {
    //put your code here
    protected $_validate = array(
        array('uid','require','用户ID必须！', self::MUST_VALIDATE),
        array('uid','unique','您已经提交过绑定私人医生的申请，请等待系统为您匹配合适的医生！', self::MUST_VALIDATE),
        array('username','require','填写申请者姓名！', self::MUST_VALIDATE),
        array('mobile','require','联系电话必须！', self::MUST_VALIDATE),
        array('mobile','number','联系电话错误！', self::MUST_VALIDATE),
        array('condition','require','填写您的身体状况便于我们为您选择对应专长的医生！', self::MUST_VALIDATE)
   );

    protected $_auto = array(
        array('add_time', 'time', self::MODEL_INSERT, 'function'),
        array('status', 1)
    );
}
